package com.park.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.park.entity.Park;
import com.park.entity.User;

import java.util.List;

public interface UserService extends IService<User> {

    //分页查询
    Page<User> selectPage(int current);

    //模糊查询
    List<User> getByUserCarId(String carId,int current);

    //模糊查询获得总数
    int getPage(String carId);

    //删除用户
    int delUser(int userId);

    //新增用户
    int addUser(User user);

    //修改用户
    int updUser(User user);

    //根据手机号查询
    User selectByPhone(String userPhone);


}
